#include "epoll_server.hpp"
#include <memory>

using namespace std;

string echo_server(string &request)
{
    cout << "打印服务请求request：" << request << endl;
    string response("[server ret]");
    response += request;
    request.erase(0);
    cout << "打印服务响应response：" << response << endl;
    return response;
}

int main()
{
    unique_ptr<cloud::epoll_server> pes(new cloud::epoll_server);
    pes->init();
    pes->dispatch();
    return 0;
}